package com.bookyourtrek.action;

import java.math.BigInteger;
import java.util.Map;

import com.bookyourtrek.model.DashBoardModel;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class CancelTrekAction extends ActionSupport{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@SuppressWarnings("rawtypes")
	public String canceltrek() {
		DashBoardModel dbm = new DashBoardModel();
		Map sess=ActionContext.getContext().getSession();
		dbm.canceltrekbyid((BigInteger) sess.get("trekid"));
		sess.remove("trekid");
		return SUCCESS;
	}
}
